<%@ Page Language="C#" MasterPageFile="~/Frame.Master" AutoEventWireup="true" CodeBehind="SearchRoles.aspx.cs" Inherits="BaseSystem._System.SearchRoles" Title="Search Roles Page" %>

<%@ Register Src="UserControl/ucRolesTree.ascx" TagName="ucRolesTree" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">

    <script type="text/javascript">
        function SetRoleValue(text,value)
        {
            window.opener.SetRole(text,value);
            CloseWin();
        }
        function CloseWin()
        {
            window.opener=null;
            window.open("","_self");
            window.close();
        }
    </script>
    
    <table border="0" align="center" cellpadding="0" cellspacing="2" style="width: 700px;">
            <tr>
                <td nowrap="nowrap" valign="top">
                </td>
                <td nowrap="nowrap" style="height: 217px" valign="top">
                    <table>
                    <tr>
                    <td valign="top"> <asp:Button ID="btnGetValue" runat="server" CssClass="button_bak" Text="<%$Resources:Base,GetValue %>" OnClick="btnGetValue_Click" />
                    <input id="btnClose" onclick="CloseWin();" class="button_bak" type="button" value="<%=Resources.Base.Close %>" />
                    </td>
                    </tr>
                        <tr>
                            <td valign="top">
                     <div id="UcTrees1div"  class="overStyle" style="border: royalblue 1px solid;background-color:#edf1f8;">
                                    <uc1:ucRolesTree ID="UcRolesTree1" runat="server" />
                                </div>
                            </td>
                        </tr>
                    </table>
                    
                    </td>
            </tr>
        </table>
        <script type="text/javascript">
        function adjustSize()
        {
            document.getElementById("UcTrees1div").style.height=document.documentElement.clientHeight-45+"px";
            document.getElementById("UcTrees1div").style.width=document.documentElement.clientWidth-45+"px";
        }

        window.onload=function()
        {
            adjustSize();
        }
        
        window.onresize=function()
        {
            adjustSize();
        }
        </script>
</asp:Content>
